import HTTP from '@utils/request'

/**
 * @date: 2024-10-06 20:17:50
 * @description: 获取商品表格数据
 * @modifyContent:
 * @author: Forever丿顾北
**/
export const Get_Commodity_Table_Data_Api = (query) => {
  return HTTP.request({
    url: '/commodity/getCommodityTableData',
    method: 'GET',
    params: query
  })
}

/**
 * @date: 2024-10-06 20:42:53
 * @description: 商品表格数据新增
 * @modifyContent:
 * @author: Forever丿顾北
**/
export const POST_Add_Commodity_Table_Data_Api = (data) => {
  return HTTP.request({
    url: '/commodity/addCommodityTableData',
    method: 'POST',
    data
  })
}

/**
 * @date: 2024-10-06 20:43:31
 * @description: 商品表格数据编辑
 * @modifyContent:
 * @author: Forever丿顾北
**/
export const POST_Edit_Commodity_Table_Data_Api = (data) => {
  return HTTP.request({
    url: '/commodity/editCommodityTableData',
    method: 'POST',
    data
  })
}

/**
 * @date: 2024-10-06 20:43:31
 * @description: 商品表格数据删除
 * @modifyContent:
 * @author: Forever丿顾北
**/
export const POST_Delete_Commodity_Table_Data_Api = (data) => {
  return HTTP.request({
    url: '/commodity/deleteCommodityTableData',
    method: 'POST',
    data
  })
}
